package com.general.framework.zzyy;

import org.springframework.stereotype.Component;

@Component
public class SilverStrategy implements HandlerStrategy {
    @Override
    public double compute(long money) {
        System.out.println("白银会员 优惠50元！");
        return money - 50;
    }

    @Override
    public int getType() {
        return UserType.SILVER_VIP.getCode();
    }
}
